package case0;

import spring.bean.User;

import java.util.*;
import java.util.stream.Collectors;

public class LambdaStreamCase {

    public static void main(String[] args) {

        List<User> list = new ArrayList<>();


        List<String> resultList = list.stream().map(User::getUsername).collect(Collectors.toList());

        System.out.println(resultList);




    }
}
